#include "reg51.h"
#include "intrins.h"


sfr     SPSTAT  =   0xcd;
sfr     SPCTL   =   0xce;
sfr     SPDAT   =   0xcf;
sfr			P_SW1		=		0xA2;
#define ESPI        0x02

sbit CS = P2^2;
sbit DC = P2^0;
sbit RES = P2^1;


extern void SPI_Init(void);
extern void OLED_F8X8(unsigned char x,unsigned char y,int F8X8_Bid);
extern void Delay100us();
extern void Oled_F8X8_Int_Show(unsigned char x,unsigned char y,int dat);